{extend name="admin@index_layout"/}
{block name="main"}
<style>
.layui-form textarea{
    width: 100%;
    height: 610px;
    border: none;
    background-color: #0C0C0C;
    color: #C2BE9E;;
    font-family: Courier New;
    resize: none;
}

</style>
<form class="layui-form" method="post">
    
    <textarea name="content">{$content}</textarea>
    <input type="hidden" name="path" value="{$path}"/>
    <input type="hidden" name="filename" value="{$filename}"/>

    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit>立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.listen();
});
</script>
{/block}